import request from '@/config/axios'

export interface DrawingAlterTypeVO {
  remark: string
  alterType: string
  degreeDifficulty: number
  dictAlterStatus: number
  id: number
}

// 查询配置中心--制图管理--改动类型列表
export const getDrawingAlterTypePage = async (params) => {
  return await request.get({ url: `/config/drawing-alter-type/page`, params })
}

// 查询配置中心--制图管理--改动类型详情
export const getDrawingAlterType = async (id: number) => {
  return await request.get({ url: `/config/drawing-alter-type/get?id=` + id })
}

// 新增配置中心--制图管理--改动类型
export const createDrawingAlterType = async (data: DrawingAlterTypeVO) => {
  return await request.post({ url: `/config/drawing-alter-type/create`, data })
}

// 修改配置中心--制图管理--改动类型
export const updateDrawingAlterType = async (data: DrawingAlterTypeVO) => {
  return await request.put({ url: `/config/drawing-alter-type/update`, data })
}

// 删除配置中心--制图管理--改动类型
export const deleteDrawingAlterType = async (id: number) => {
  return await request.delete({ url: `/config/drawing-alter-type/delete?id=` + id })
}

// 导出配置中心--制图管理--改动类型 Excel
export const exportDrawingAlterType = async (params) => {
  return await request.download({ url: `/config/drawing-alter-type/export-excel`, params })
}
